using System.ComponentModel;


namespace DaprPlus.Identity.Domain.Entities
{

    public class ValidateCode()
    {
        public string Code { get; set; } = null!;

        public DateTime ExpireTime { get; set; }

        public string UserInfo { get; set; } = null!;

        public ValidateCodeType Type { get; set; }

        public int FailCount { get; set; }
    }

    public enum ValidateCodeType
    {
        [Description("登录")]
        Login,

        [Description("注册验证")]
        Register,

        [Description("重置密码")]
        ResetPassword,

        [Description("修改密码")]
        ChangePassword
    }
}
